
package org.testfire.realm.model.entities;

import java.io.Serializable;

import javax.persistence.*;

/**
 * This Entity represents the Address information for a Contact_info Entity.
 * Since this class is not actually used in the template, commenting will
 * wait until it is.
 *
 * Likely it won't be used, but rather will be replaced by a better thought-out
 * implementation representation of a User->ContactInfo relationship.
 *
 * Remains so as to provide an example of certain annotations.
 *
 */
@Entity
    @Table(catalog = "lgsrealm", name = "tbl_address")
    public class Address implements Serializable {


  Integer id;
  String street;
  String street_two;
  String city;
  String state;
  Integer zip;
  Integer zip_four;
  String country;
  public Address() {
    super();
  }

  public Address(String street, String street_two, String city, String state, String zip) {
    this.street = street;
    this.street_two = street_two;
    this.city = city;
    this.state = state;
    this.zip = Integer.parseInt(zip);
  }

  @Id
      @GeneratedValue(strategy = GenerationType.SEQUENCE)
      public Integer getId() {
    return this.id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getStreet() {
    return this.street;
  }

  public void setStreet(String street) {
    this.street = street;
  }

  public String getStreet_two() {
    return this.street_two;
  }

  public void setStreet_two(String street_two) {
    this.street_two = street_two;
  }

  public String getCity() {
    return this.city;
  }

  public void setCity(String city) {
    this.city = city;
  }

  public String getState() {
    return this.state;
  }

  public void setState(String state) {
    this.state = state;
  }

  public Integer getZip() {
    return this.zip;
  }

  public void setZip(Integer zip) {
    this.zip = zip;
  }

  public Integer getZip_four() {
    return this.zip_four;
  }

  public void setZip_four(Integer zip_four) {
    this.zip_four = zip_four;
  }

  public String getCountry() {
    return this.country;
  }

  public void setCountry(String country) {
    this.country = country;
  }

}
